package cn.luo.dao;

import cn.luo.entity.Content;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class ContentDao {
    @Autowired
    MongoTemplate mongoTemplate;

    public Content findById(String id) {
        Content content = mongoTemplate.findById(id, Content.class);
        return content;

    }

}
